cmake_minimum_required(VERSION 3.8.2)

PROJECT(rkisp_demo_lite)
aux_source_directory(${PROJECT_SOURCE_DIR} SRCS)
set(LIB rkaiq pthread)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${CMAKE_SYSROOT}/usr/include/rkaiq/algos)
include_directories(${CMAKE_SYSROOT}/usr/include/rkaiq/common)
include_directories(${CMAKE_SYSROOT}/usr/include/rkaiq/iq_parser)
include_directories(${CMAKE_SYSROOT}/usr/include/rkaiq/uAPI)
include_directories(${CMAKE_SYSROOT}/usr/include/rkaiq/xcore)

add_executable(${PROJECT_NAME} ${SRCS})
target_link_libraries(${PROJECT_NAME} ${LIB})

install(TARGETS ${PROJECT_NAME} DESTINATION lib)
